home *** CD-ROM | disk | FTP | other *** search
- *** ../step03/supcmeat.c Thu Dec 16 13:59:00 1993
- --- supcmeat.c Fri Dec 17 12:10:19 1993
- ***************
- *** 128,133 ****
- --- 128,136 ----
- #else
- #include <varargs.h>
- #endif
- + #ifdef _ABI_SOURCE
- + #include <utime.h>
- + #endif
-
- #if __STDC__
- void done (int, char *, ...);
- ***************
- *** 828,834 ****
- --- 831,841 ----
- register int new;
- register struct stat *statp;
- {
- + #ifdef _ABI_SOURCE
- + struct utimbuf tbuf;
- + #else
- struct timeval tbuf[2];
- + #endif
-
- if (new) {
- if (thisC->Cflags&CFLIST) {
- ***************
- *** 859,867 ****
- --- 866,880 ----
- (void) chown (t->Tname,t->Tuid,t->Tgid);
- (void) chmod (t->Tname,t->Tmode&S_IMODE);
- }
- + #ifdef _ABI_SOURCE
- + tbuf.actime = time((long *)NULL);
- + tbuf.modtime = t->Tmtime;
- + (void) utime (t->Tname,&tbuf);
- + #else
- tbuf[0].tv_sec = time((long *)NULL); tbuf[0].tv_usec = 0;
- tbuf[1].tv_sec = t->Tmtime; tbuf[1].tv_usec = 0;
- (void) utimes (t->Tname,tbuf);
- + #endif
- vnotify ("SUP %s directory %s\n",new?"Created":"Updated",t->Tname);
- return (FALSE);
- }
- ***************
- *** 908,914 ****
- --- 921,931 ----
- register FILE *fin,*fout;
- char dirpart[STRINGLENGTH],filepart[STRINGLENGTH];
- char filename[STRINGLENGTH],buf[STRINGLENGTH];
- + #ifdef _ABI_SOURCE
- + struct utimbuf tbuf;
- + #else
- struct timeval tbuf[2];
- + #endif
- register int x;
- register char *p;
-
- ***************
- *** 935,943 ****
- --- 952,966 ----
- (void) chown (t->Tname,t->Tuid,t->Tgid);
- (void) chmod (t->Tname,t->Tmode&S_IMODE);
- }
- + #ifdef _ABI_SOURCE
- + tbuf.actime = time((long *)NULL);
- + tbuf.modtime = t->Tmtime;
- + (void) utime (t->Tname,&tbuf);
- + #else
- tbuf[0].tv_sec = time((long *)NULL); tbuf[0].tv_usec = 0;
- tbuf[1].tv_sec = t->Tmtime; tbuf[1].tv_usec = 0;
- (void) utimes (t->Tname,tbuf);
- + #endif
- return (FALSE);
- }
- if (thisC->Cflags&CFLIST) {
- ***************
- *** 994,1002 ****
- --- 1017,1031 ----
- (void) chown (t->Tname,t->Tuid,t->Tgid);
- (void) chmod (t->Tname,t->Tmode&S_IMODE);
- }
- + #ifdef _ABI_SOURCE
- + tbuf.actime = time((long *)NULL);
- + tbuf.modtime = t->Tmtime;
- + (void) utime (t->Tname,&tbuf);
- + #else
- tbuf[0].tv_sec = time((long *)NULL); tbuf[0].tv_usec = 0;
- tbuf[1].tv_sec = t->Tmtime; tbuf[1].tv_usec = 0;
- (void) utimes (t->Tname,tbuf);
- + #endif
- return (FALSE);
- }
-
-